qui(function(require, exports, module) {

    NewsDetails.Config = {

		REPEAT_INFO : ["周一","周二","周三","周四","周五","周六","周日"], //播放日期
        REGION_LIST: ['cq', 'sh', 'bj'],
        REGION_CH_LIST: ['重庆', '上海', '北京'],

        IP_LINK_AREA: {},

        NEWS_STATUS_NAME: ['未发布', '发布', '删除', '自动删除'],

			TABLE_COLMODEL_CONFIG: {
				'newsName': {
					name: 'newsName',
					title: false,
					index: 'newsName',
					align:'center',
					sortable: false,
					width: 100
				},
				'channelName': {
                    name: 'channelName',
                    title: false,
                    index: 'channelName',
                    align:'center',
                    sortable: false,
                    width: 100
                },
                'serverRegion': {
                    name: 'serverRegion',
                    title: false,
                    index: 'serverRegion',
                    align:'center',
                    sortable: false,
                    width: 80
                },
                'serverIp': {
                    name: 'serverIp',
                    title: false,
                    index: 'serverIp',
                    align:'center',
                    sortable: false,
                    width: 100
                },
				'productTime': {
					name: 'productTime',
					title: false,
					index: 'productTime',
					align:'center',
					width: 100,
					sortable: false
				},
				'status': {
					name: 'status',
					title: false,
					index: 'status',
					align:'center',
					sortable: false,
					width: 80,
					formatter: function(v, o, r) {
                        return NewsDetails.Util.formatter.status(v,r);
                    }
				},
				'intelligentTitle': {
					name: 'intelligentTitle',
					title: false,
					index: 'intelligentTitle',
					width: 230,
					align:'center',
					sortable: false
				},
				'submitTitle': {
                    name: 'submitTitle',
                    title: false,
                    index: 'submitTitle',
                    width: 230,
                    align:'center',
                    sortable: false
                },
                'percentTitle': {
                    name: 'percentTitle',
                    title: false,
                    index: 'percentTitle',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'intelligentStartNum': {
                    name: 'intelligentStartNum',
                    title: false,
                    index: 'intelligentStartNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'submitStartNum': {
                    name: 'submitStartNum',
                    title: false,
                    index: 'submitStartNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'errorStartNum': {
                    name: 'errorStartNum',
                    title: false,
                    index: 'errorStartNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },

                'intelligentEndNum': {
                    name: 'intelligentEndNum',
                    title: false,
                    index: 'intelligentEndNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'submitEndNum': {
                    name: 'submitEndNum',
                    title: false,
                    index: 'submitEndNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'errorEndNum': {
                    name: 'errorEndNum',
                    title: false,
                    index: 'errorEndNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'excLog': {
                    name: 'excLog',
                    title: false,
                    index: 'excLog',
                    width: 100,
                    align:'center',
                    sortable: false
                },
                'submitUser': {
                    name: 'submitUser',
                    title: false,
                    index: 'submitUser',
                    width: 100,
                    align:'center',
                    sortable: false
                }

			},

			TABLE: {
			    url: "/api/newsDetails/list",
			    rowNum:20,
			    multiselect: false,

			    loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },

			    datatype: "local",
			    loadtext: '加载中...',
                loadui: "block",
                mtype: "post",
				colNames: ["新闻节目名称", "所属电视台", "服务器", "服务器IP", "日期", "状态", "识别的标题", "发布的标题",
				"标题准确度","识别的入点","发布的入点","入点误差","识别的出点","发布的出点","出点误差","异常提示","审核人"
				],
				colModel: ['newsName', 'channelName', 'serverRegion', 'serverIp', 'productTime', 'status', 'intelligentTitle',
				 'submitTitle', 'percentTitle', 'intelligentStartNum', 'submitStartNum', 'errorStartNum', 'intelligentEndNum',
                 'submitEndNum','errorEndNum','excLog','submitUser'
				]
			}
		};
});